/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.seari.service.impl;

import com.seari.bean.MaterialCaregoryAttr;
import com.seari.bean.Station;
import com.seari.mapper.MaterialCaregoryAttrMapper;
import com.seari.service.MaterialCaregoryAttrService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 *
 * @author whl
 */
@Service("materialCaregoryAttrService")
public class MaterialCaregoryAttrServiceImpl implements MaterialCaregoryAttrService
{
    @Autowired
    private MaterialCaregoryAttrMapper materialCaregoryAttrMapper;

    @Override
    public List<Map<String, String>> getLineList(Map<String, String> map) {
        return materialCaregoryAttrMapper.getLineList(map);
    }

    @Override
    public List<Station> getStationByParam(Station station) {
        return materialCaregoryAttrMapper.getStationByParam(station);
    }

    @Override
    public List<MaterialCaregoryAttr> getFMcAttrByParams(MaterialCaregoryAttr materialCaregoryAttr) {
        return materialCaregoryAttrMapper.getFMcAttrByParams(materialCaregoryAttr);
    }

    @Override
    public List<MaterialCaregoryAttr> getAttrAndValueByFMcId(MaterialCaregoryAttr materialCaregoryAttr) {
        return materialCaregoryAttrMapper.getAttrAndValueByFMcId(materialCaregoryAttr);
    }

    @Override
    public List<MaterialCaregoryAttr> getCommonAttr(MaterialCaregoryAttr materialCaregoryAttr) {
        return materialCaregoryAttrMapper.getCommonAttr(materialCaregoryAttr);
    }

    @Override
    public int getMcAttrListCount(MaterialCaregoryAttr materialCaregoryAttr) {
        return materialCaregoryAttrMapper.getMcAttrListCount(materialCaregoryAttr);
    }

    @Override
    public int addMcAttr(MaterialCaregoryAttr materialCaregoryAttr) {
        return materialCaregoryAttrMapper.addMcAttr(materialCaregoryAttr);
    }

    @Override
    public int addMcAttrBatch(List<MaterialCaregoryAttr> materialCaregoryAttrList){
        return materialCaregoryAttrMapper.addMcAttrBatch(materialCaregoryAttrList);
    }

    @Override
    public int updateMcAttr(MaterialCaregoryAttr materialCaregoryAttr) {
        return materialCaregoryAttrMapper.updateMcAttr(materialCaregoryAttr);
    }

    @Override
    public int updateFCaEnabledByMcId(MaterialCaregoryAttr materialCaregoryAttr) {
        return materialCaregoryAttrMapper.updateFCaEnabledByMcId(materialCaregoryAttr);
    }

    @Override
    public int updateFCaOrderByMcId(MaterialCaregoryAttr materialCaregoryAttr) {
        return materialCaregoryAttrMapper.updateFCaOrderByMcId(materialCaregoryAttr);
    }

    @Override
    public int deleteMcAttrByFMcId(MaterialCaregoryAttr materialCaregoryAttr) {
        return materialCaregoryAttrMapper.deleteMcAttrByFMcId(materialCaregoryAttr);
    }

    @Override
    public int deleteMcAttrByFCaId(MaterialCaregoryAttr materialCaregoryAttr) {
        return materialCaregoryAttrMapper.deleteMcAttrByFCaId(materialCaregoryAttr);
    }
}
